#! /usr/bin/env python
#coding=utf-8
n = int(input());
a = [];
for i in range(n):
    a.append(input());
r = "";
for x in a:
    if a.count(x) > a.count(r):
        r = x;
        
print(r);
